package com.ymttest.database.sqlwapper.hunter;

import java.util.List;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.hunter.OrderProductCommissionDetail;

public class OrderProductCommissionDetailWrapper {
	
	SqlManager manager;

    public OrderProductCommissionDetailWrapper() {
        manager = new SqlManager("tradingsettlement");
    }
    
    @SuppressWarnings("unchecked")
	public OrderProductCommissionDetail selectByPrimaryKey(Long id) {
    	
    	OrderProductCommissionDetail orderProductCommissionDetail = new OrderProductCommissionDetail();
    	List<OrderProductCommissionDetail> result = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.hunter.OrderProductCommissionDetailMapper.selectByPrimaryKey",
                        id);
        manager.commit();
        
		if (result.size() > 0) {
			orderProductCommissionDetail = result.get(0);
		}
		
        return orderProductCommissionDetail;
    }
    
    public static void main(String[] args) {
    	
    	OrderProductCommissionDetailWrapper wrapper = new OrderProductCommissionDetailWrapper();
    	Logger.comment(wrapper.selectByPrimaryKey(1L).toString());
    }
}
